Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDAP: remove unused methods and DB values #22583

Merged
merged 2 commits into from
Sep 6, 2020
Merged

Conversation

blizzz
Copy link
Member

@blizzz blizzz commented Sep 4, 2020

We were still having the update() method on LDAP's User class as well as related values we stored with the users. In the past we changed updating of user records to happen initially (on first importing), in the background, and on login. The use case to do it inline was not given anymore. update() was now only referenced by unit tests. It made use of some other methods and also of the lastFeatureRequest marker in the database. This is not needed anymore, and thus we do not need to write it anymore on every background run. The repair steps take care of removing these rows from the database.

@blizzz
Copy link
Member Author

blizzz commented Sep 4, 2020

/backport to stable19

@blizzz
Copy link
Member Author

blizzz commented Sep 4, 2020

/backport to stable18

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@blizzz blizzz force-pushed the fix/noid/remove-unused-code branch 2 times, most recently from 64341f1 to 18c6b98 Compare September 4, 2020 09:04
@faily-bot

This comment has been minimized.

- only references were in unit tests

Signed-off-by: Arthur Schiwon <[email protected]>
Copy link
Member

@juliushaertl juliushaertl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small naming suggestion, otherwise 👍

… prefs

- also removes related app setting "updateAttributesInterval"

Signed-off-by: Arthur Schiwon <[email protected]>
@blizzz blizzz added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Sep 4, 2020
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 🚀 🧹

@rullzer rullzer mentioned this pull request Sep 6, 2020
13 tasks
@rullzer rullzer merged commit 06a1cfc into master Sep 6, 2020
@rullzer rullzer deleted the fix/noid/remove-unused-code branch September 6, 2020 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: ldap technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants